<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理</title>
    <style>
        .welcome-box {
            padding: 20px;
            margin-bottom: 20px;
            background: #f8f8f8;
            border-radius: 4px;
        }
        .stats-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }
        .stats-card {
            flex: 1;
            min-width: 200px;
            padding: 20px;
            background: #fff;
            border-radius: 4px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        .stats-card .title {
            color: #666;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .stats-card .number {
            color: #333;
            font-size: 24px;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="welcome-box">
        <h2>欢迎使用希尔顿花园酒店会员管理系统</h2>
        <p>今天是 <?php echo date('Y年m月d日'); ?></p>
    </div>

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md2">
                        <div class="layui-card">
                            <div class="layui-card-header">今日新增会员</div>
                            <div class="layui-card-body">
                                <p class="layui-text-center" style="font-size: 24px;color: #009688;">
                                    <?php echo $today_new_members; ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md2">
                        <div class="layui-card">
                            <div class="layui-card-header">今日会员充值</div>
                            <div class="layui-card-body">
                                <p class="layui-text-center" style="font-size: 24px;color: #FF5722;">
                                    ￥<?php echo number_format($today_recharge, 2); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md2">
                        <div class="layui-card">
                            <div class="layui-card-header">今日营业额</div>
                            <div class="layui-card-body">
                                <p class="layui-text-center" style="font-size: 24px;color: #01AAED;">
                                    ￥<?php echo number_format($today_sales, 2); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md2">
                        <div class="layui-card">
                            <div class="layui-card-header">累计会员</div>
                            <div class="layui-card-body">
                                <p class="layui-text-center" style="font-size: 24px;color: #5FB878;">
                                    <?php echo $total_members; ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md2">
                        <div class="layui-card">
                            <div class="layui-card-header">累计交易额</div>
                            <div class="layui-card-body">
                                <p class="layui-text-center" style="font-size: 24px;color: #FF5722;">
                                    ￥<?php echo number_format($total_sales, 2); ?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md2">
                        <div class="layui-card">
                            <div class="layui-card-header">商品总数</div>
                            <div class="layui-card-body">
                                <p class="layui-text-center" style="font-size: 24px;color: #393D49;">
                                    <?php echo $total_goods; ?>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
    layui.use(['jquery', 'layer'], function(){
        var $ = layui.jquery;
        var layer = layui.layer;
        
        // 这里可以添加获取实时统计数据的Ajax请求
    });
    </script>
</body>
</html> 